package com.lemon.smartsafetynew.ui.fragment.monitor;

import android.os.Bundle;

import com.lemon.smartsafety.listener.RecyclerTClickListener;
import com.lemon.smartsafetynew.ui.fragment.base.BasePullToRefreshFragment;
import com.lemon.smartsafetynew.entity.monitor.MonitorCompanyVo;
import com.lemon.smartsafetynew.ui.adapter.monitor.MonitorCompanyListAdapter;

import java.util.List;

import kale.adapter.LemonRcvAdapter;

/**
 * 动态监测企业列表
 * Created by Andrew on 2018/3/16.
 */

public class MonitorCompanyListFragment extends BasePullToRefreshFragment<MonitorCompanyVo, List<MonitorCompanyVo>>
        implements RecyclerTClickListener<MonitorCompanyVo> {

    public static MonitorCompanyListFragment newInstance() {

        Bundle args = new Bundle();

        MonitorCompanyListFragment fragment = new MonitorCompanyListFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onPullRefresh() {
//TODO
    }

    @Override
    public void onLoadMore() {
//TODO
    }

    @Override
    public boolean goRefreshOnCreate() {
        return true;
    }

    @Override
    public LemonRcvAdapter<MonitorCompanyVo> getLemonAdapter() {
        return new MonitorCompanyListAdapter(mDataList, this);
    }

    @Override
    public String getHttpTag() {
        return null;
    }

    @Override
    public void onItemClick(MonitorCompanyVo data, int position) {

    }
}
